import React, { useEffect } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import './index.scss';

const Index = () => {
  const loc = useLocation();
  const nav = useNavigate();

  useEffect(() => {
    const locSearch = loc.search;
    console.log(locSearch);
  }, [loc]);

  return (
    <div className='index-view'>
      <button>登录</button>
    </div>
  );
};

export default Index;
